package br.caixa2.entities;

import com.br.generateswingview.annotations.Alias;
import com.br.generateswingview.annotations.MaskedField;

public class Client {

	@Alias( "Nome" )
	private String name;
	@Alias( "CPF" )
	@MaskedField( mask = "###.###.###-##" )
	private String cpf;
	@Alias( "Telefone" )
	@MaskedField( mask = "(##)####-####" )
	private String phone;
	@Alias( "Endereço" )
	private String adress;

	public Client( String name, String cpf ) {
		this.name = name;
		this.cpf = cpf;
	}

	public String getName() {
		return name;
	}

	public void setName( String name ) {
		this.name = name;
	}

	public String getCpf() {
		return cpf;
	}

	public void setCpf( String cpf ) {
		this.cpf = cpf;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone( String phone ) {
		this.phone = phone;
	}

	public String getAdress() {
		return adress;
	}

	public void setAdress( String adress ) {
		this.adress = adress;
	}

	@Override
	public String toString() {
		return this.getName();
	}

}
